<div class="d-kuan d-neikuang-30 navbar-fixed-top d-beijing-baise {if $_GET['s'] == 'quan' && $_GET['id'] > 0 ||  $_GET['s'] == 'huiyuan' || ($_GET['s'] == 'fuwu' && $_GET['id'] > 0) || $_GET['s'] == 'wenda'} d-yincang {/if}">
	<div class="d-container">
	<div class="row d-gao-60">
	    <div class="col-md-1 col-xs-2 d-wenzi-zuobian d-shangxian-juzhong d-gao-60">
		    <a href="{SITE_URL}"><img src="{SITE_LOGOICO}" width="38" height="38" width="38" class=""></a>
	    </div>
	    <div class="col-md-7 col-xs-8 d-wenzi-juzhong d-gao-60 ">
		    <!--搜索-->
			{if dr_is_app('jiansuo') && $jiansuokai == 0}
				<form class="search-form" action="{SITE_MURL}index.php" method="get">
					<div class="input-group d-shang-10">
						<input type="hidden" name="s" value="jiansuo">
							<input type="hidden" name="c" value="home">
							<input type="hidden" name="m" value="index">
							<input type="hidden" name="lei" value="1">
						<input type="text" class="form-control" name='k' value='{$_GET['k']}' id='search_keyword' placeholder="搜索...">
						<span class="input-group-btn">
							<button class="btn btn-default" onclick="dr_post_comment('search_keyword')" type="submit"><i class="fa fa-search"></i></button>
						</span>
					</div>
				</form>
			{else}
				<form class="search-form" action="{SITE_MURL}index.php" method="get">
					<div class="input-group d-shang-10">
						<input type="hidden" name="s" value="quan">
						<input type="hidden" name="c" value="sou">
						<input type="hidden" name="m" value="index">
						<input type="hidden" name="lei" value="1">
						<input type="text" class="form-control" name='k' value='{$_GET['k']}' id='search_keyword' placeholder="搜索...">
						<span class="input-group-btn">
							<button class="btn btn-default" onclick="dr_post_comment('search_keyword')" type="submit"><i class="fa fa-search"></i></button>
						</span>
					</div>
				</form>
			{/if}
			<script>
			    // 这段js是用来执行搜索的
			    function dr_post_comment(name) {
			        var value = $("#"+name).val();
			        if (!value) {
			            $("#"+name).focus()
			            dr_cmf_tips(0, "请输入关键词");
			        }
			        return false;
			    }
			</script>
	    </div>
		<div class="col-md-4 col-xs-2 d-wenzi-youbian d-gao-60 d-yincang-pc ">
			<span class="d-shang-10 pull-right ">
				<a href="{SITE_URL}index.php?s=member&app=notice" class="d-buhuanhang">
					{if $member}
						{count action=table table=member_notice uid=$member.uid isnew=1 return=xiaoxi}
						{if $xiaoxi_count > 0}
							{if dr_is_app('notice')}
								<span class="badge d-beijing-chengse dr_notice_num d-shang-10">0</span>
								<script>
									$('.dr_notice_num').html("{count action=table table=member_notice uid=$member.uid isnew=1}");
								</script>
							{/if}
						{/if}
					{/if}
				    <img src="{HOME_THEME_PATH}quan/img/xiaoxi3.png" width="38" height="38" class="">
					
				</a>
			</span>
		</div>
	    <div class="col-md-4 col-xs-2 d-wenzi-youbian d-gao-60 d-yincang ">
			{if $member}
				<span class="d-shang-12 pull-right  d-xiala">
					<a href="{SITE_URL}index.php?s=member" class="d-yuanjiao-50">
					    <img src="{$member.avatar}" width="38" height="38" class="d-yuanjiao-50">
					</a>
					<div class="d-xiala-ji">
						<div class="d-xiala-ji-0 d-quxian-0 ">
							<a class="d-wenzi-16 d-hanggao-30" href="{d_huiyuan_url($member.id)}">
								<i class="bi bi-award"></i> 个人主页
							</a>
							<a class="d-wenzi-16 d-hanggao-30" href="{SITE_URL}index.php?s=member">
								<i class="bi bi-person"></i> 会员中心
							</a>
							<a class="d-hanggao-30" href="javascript:;" onclick="dr_loginout()">
								<i class=" bi bi-box-arrow-right"></i> 退出
							</a>
						</div>
						<div class="d-clear"></div>
					</div>
				</span>
				<span class="d-shang-12 pull-right d-zuoyou-20 d-quxian-0">
					<a href="{SITE_URL}index.php?s=member&app=notice">
					    <img src="{HOME_THEME_PATH}quan/img/xiaoxi3.png" width="38" height="38" class="">
						{if $member}
							{count action=table table=member_notice uid=$member.uid isnew=1 return=xiaoxi}
							{if $xiaoxi_count > 0}
								{if dr_is_app('notice')}
									<span class="badge d-beijing-chengse dr_notice_num">0</span>
									<script>
										$('.dr_notice_num').html("{count action=table table=member_notice uid=$member.uid isnew=1}");
									</script>
								{/if}
							{/if}
						{/if}
						
					</a>
					
				</span>
				<!--span class="d-shang-12 pull-right">
					<a>
						<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">发布</div>
					</a>
					
					
				</span-->
			{else}
			    {if isset($ci->member_cache['oauth']['weixin']['id']) && $ci->member_cache['oauth']['weixin']['id']}
					<div class="d-shang-12">
						<a target="_blank" href="{Router::oauth_url('weixin', 'login', ["back" => urlencode($my_web_url)])}">
							<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"><i class="fa fa-wechat"></i> 登 录</div>
						</a>
					</div>
				{else}
					<div class="d-shang-12">
						<a href="{dr_member_url("login/index", ["back" => urlencode($my_web_url)])}">
							<div class="d-neikuang-8-20 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">登 录</div>
						</a>
					</div>
				{/if}
			{/if}
			
		</div>
	</div>
</div>
</div>

<style>
	.form-control {
	    width: 100%;
	    height: 34px;
	    padding: 6px 12px;
	    background-color: #f3f4f7;
	    border: 1px solid #f3f4f7;
	    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
	    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		border-radius: 6px;
	}
	.form-control:hover {
	    width: 100%;
	    height: 34px;
	    padding: 6px 12px;
	    background-color: #f3f4f7;
	    border: 1px solid #f3f4f7;
	    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
	    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
	}
	.btn-default {
	    color: #333;
	    background-color: #f3f4f7;
	    border-color: #f3f4f7;
	}
	.btn-default:hover {
	    color: #333;
	    background-color: #f3f4f7;
	    border-color: #f3f4f7;
	}
	.input-group input:focus{
		border: 1px solid #f3f4f7;
		
	}
	.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn, .input-group .form-control:not(:first-child):not(:last-child), .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child) {
	    border-radius: 6px 0 0 6px;
	}
	
</style>